package com.wbw.csnd_hd.controller;

import com.wbw.csnd_hd.common.ResultCommon;
import com.wbw.csnd_hd.service.AreaService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/csdn")
@CrossOrigin(origins = "*")
public class AreaController {
    @Autowired
    AreaService areaService;

    @PostMapping("/find")
    public ResultCommon find(){
        return areaService.find();
    }


    @PostMapping("/find/{no}")
    public ResultCommon findByNo(@PathVariable("no") String no){
        return areaService.findByNo(no);
    }


}
